package ProOF.apl.factorys;

import ProOF.apl.problems.real.RealProblem;
import ProOF.apl.problems.real.operators.fRealOperator;
import ProOF.com.language.Factory;
import ProOF.opt.abst.problem.meta.Problem;

/**
 *
 * @author marcio
 */
public final class fProblem extends Factory<Problem>{
    public static final fProblem obj = new fProblem();
    
    @Override
    public String name() {
        return "Problem";
    }
    
    @Override
    public Problem NewNode(int index) {
        switch(index){
            case 0: return new RealProblem( fRealOperator.obj );
        }
        return null;
    }
}
